package com.zw.yzk.kabu.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by zhanwei on 2017/3/15.
 */

public class CheckQrCodeModel implements Parcelable {

    private String ticketType;
    private int exhibitionId;
    private String id;
    private String checkTicketTime;
    private float totalPrice;
    private String phoneNumber;
    private String serialNumber;
    private String image;
    private String exhibitionEndTime;
    private float price;
    private String createTime;
    private int checkResult;
    private String exhibitionStartTime;
    private String exhibitionAddress;
    private String orderState;
    private String tradeEndTime;
    private String unifiedOrder;
    private String wxTransactionId;
    private String checkCode;
    private String qrCodeUrl;
    private int count;
    private String name;
    private String checkFailedReason;

    public String getCheckFailedReason() {
        return checkFailedReason;
    }

    public void setCheckFailedReason(String checkFailedReason) {
        this.checkFailedReason = checkFailedReason;
    }

    public String getTicketType() {
        return ticketType;
    }

    public void setTicketType(String ticketType) {
        this.ticketType = ticketType;
    }

    public int getExhibitionId() {
        return exhibitionId;
    }

    public void setExhibitionId(int exhibitionId) {
        this.exhibitionId = exhibitionId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCheckTicketTime() {
        return checkTicketTime;
    }

    public void setCheckTicketTime(String checkTicketTime) {
        this.checkTicketTime = checkTicketTime;
    }

    public float getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(float totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getExhibitionEndTime() {
        return exhibitionEndTime;
    }

    public void setExhibitionEndTime(String exhibitionEndTime) {
        this.exhibitionEndTime = exhibitionEndTime;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getCheckResult() {
        return checkResult;
    }

    public void setCheckResult(int checkResult) {
        this.checkResult = checkResult;
    }

    public String getExhibitionStartTime() {
        return exhibitionStartTime;
    }

    public void setExhibitionStartTime(String exhibitionStartTime) {
        this.exhibitionStartTime = exhibitionStartTime;
    }

    public String getExhibitionAddress() {
        return exhibitionAddress;
    }

    public void setExhibitionAddress(String exhibitionAddress) {
        this.exhibitionAddress = exhibitionAddress;
    }

    public String getOrderState() {
        return orderState;
    }

    public void setOrderState(String orderState) {
        this.orderState = orderState;
    }

    public String getTradeEndTime() {
        return tradeEndTime;
    }

    public void setTradeEndTime(String tradeEndTime) {
        this.tradeEndTime = tradeEndTime;
    }

    public String getUnifiedOrder() {
        return unifiedOrder;
    }

    public void setUnifiedOrder(String unifiedOrder) {
        this.unifiedOrder = unifiedOrder;
    }

    public String getWxTransactionId() {
        return wxTransactionId;
    }

    public void setWxTransactionId(String wxTransactionId) {
        this.wxTransactionId = wxTransactionId;
    }

    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    public String getQrCodeUrl() {
        return qrCodeUrl;
    }

    public void setQrCodeUrl(String qrCodeUrl) {
        this.qrCodeUrl = qrCodeUrl;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public CheckQrCodeModel() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.ticketType);
        dest.writeInt(this.exhibitionId);
        dest.writeString(this.id);
        dest.writeString(this.checkTicketTime);
        dest.writeFloat(this.totalPrice);
        dest.writeString(this.phoneNumber);
        dest.writeString(this.serialNumber);
        dest.writeString(this.image);
        dest.writeString(this.exhibitionEndTime);
        dest.writeFloat(this.price);
        dest.writeString(this.createTime);
        dest.writeInt(this.checkResult);
        dest.writeString(this.exhibitionStartTime);
        dest.writeString(this.exhibitionAddress);
        dest.writeString(this.orderState);
        dest.writeString(this.tradeEndTime);
        dest.writeString(this.unifiedOrder);
        dest.writeString(this.wxTransactionId);
        dest.writeString(this.checkCode);
        dest.writeString(this.qrCodeUrl);
        dest.writeInt(this.count);
        dest.writeString(this.name);
        dest.writeString(this.checkFailedReason);
    }

    protected CheckQrCodeModel(Parcel in) {
        this.ticketType = in.readString();
        this.exhibitionId = in.readInt();
        this.id = in.readString();
        this.checkTicketTime = in.readString();
        this.totalPrice = in.readFloat();
        this.phoneNumber = in.readString();
        this.serialNumber = in.readString();
        this.image = in.readString();
        this.exhibitionEndTime = in.readString();
        this.price = in.readFloat();
        this.createTime = in.readString();
        this.checkResult = in.readInt();
        this.exhibitionStartTime = in.readString();
        this.exhibitionAddress = in.readString();
        this.orderState = in.readString();
        this.tradeEndTime = in.readString();
        this.unifiedOrder = in.readString();
        this.wxTransactionId = in.readString();
        this.checkCode = in.readString();
        this.qrCodeUrl = in.readString();
        this.count = in.readInt();
        this.name = in.readString();
        this.checkFailedReason = in.readString();
    }

    public static final Creator<CheckQrCodeModel> CREATOR = new Creator<CheckQrCodeModel>() {
        @Override
        public CheckQrCodeModel createFromParcel(Parcel source) {
            return new CheckQrCodeModel(source);
        }

        @Override
        public CheckQrCodeModel[] newArray(int size) {
            return new CheckQrCodeModel[size];
        }
    };
}
